package com.study.design.model.structPattern.wrapper;

import org.junit.Test;

/**
* @Name: Client
* @Description: 包装器模式测试类
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-2-11 下午12:10:08 
* @Version: V1.0
 */
public class Client {
	
	@Test
	public void test() {
		//普通汽车
		Car car = new Car() ;
		car.move() ;
		//飞行汽车
		FlyCar flyCar = new FlyCar(car) ;
		flyCar.move() ;
		//游水汽车
		WaterCar waterCar = new WaterCar(new Car()) ;
		waterCar.move() ;
	}

}
